package com.cx.mapper;

import com.cx.pojo.Engine;
import com.cx.pojo.EngineExample;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository// 用于修饰mapper（dao）层的
public interface EngineMapper {
    int countByExample(EngineExample example);

    int deleteByExample(EngineExample example);

    int deleteByPrimaryKey(Integer eId);

    int insert(Engine record);

    int insertSelective(Engine record);

    List<Engine> selectByExample(EngineExample example);

    Engine selectByPrimaryKey(Integer eId);

    int updateByExampleSelective(@Param("record") Engine record, @Param("example") EngineExample example);

    int updateByExample(@Param("record") Engine record, @Param("example") EngineExample example);

    int updateByPrimaryKeySelective(Engine record);

    int updateByPrimaryKey(Engine record);

    //查询所有发动机
    List<Engine> selectAllEngine(Engine engine);
}